package cn.t.repository.sku;


import cn.t.core.mode.PageQueryDTO;
import cn.t.core.repoistory.impl.IRepository;
import cn.t.model.sku.CategoryDO;
import cn.t.request.CategoryReq;

import java.util.List;

/**
 * 商品类别表(Category)领域仓库
 *
 * @author t
 * @since 2024-06-11 10:35:25
 */
public interface CategoryRepository extends IRepository<CategoryDO> {

    List<CategoryDO> queryCategoryByPage(PageQueryDTO<CategoryReq> req, String field, String desc);

    Long queryCategoryCount(CategoryReq param);

    List<CategoryDO> findNameByIds(List<Long> ids);
}
